<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/script/js/jquery.PrintArea.js"></script>
<script type="text/javascript">
$("#bal_print_telfee_btn").click(function(){ 
	$("#bal_print_telfee_printdiv").printArea(); 
	$.post("bal_print.action", {"uuid":"${uuid}"}, function(data){dialogAjaxDone(data);}, "json");
}); 
</script>
<div id="bal_print_telfee_printdiv">
<div style="width: 100%;text-align: center;margin: 5px;">
<h1>学校话费结算申请</h1>
</div>
<div class="pageHeader">
	<div class="searchBar">
		<table class="searchContent" width="100%">
			<tr>
				<td>
					单据编号：${billCode}
				</td>
				<td>
					申请人：${appUserName}
				</td>
				<td>
					申请日期：<fmt:parseDate value="${appDate}"	var="appDate" pattern="yyyyMMddHHmmss" /> 
						<fmt:formatDate	value="${appDate}" pattern="yyyy-MM-dd HH:mm" />
				</td>
				<td>
					批复金额：<fmt:formatNumber value="${chkFee}" type="number" pattern="￥0.00" />
				</td>
			</tr>
		</table>
	</div>
</div>
<div class="pageContent">
	<table class="list" width="100%">
		<thead>
			<tr>
				<th>序号</th>
				<th>学校名称</th>
				<th>结算日期</th>
				<th>大区名称</th>
				<th>拓展人员</th>
				<th>维护人员</th>
				<th>电话费</th>
				<th>操作员费用</th>
				<th>批复费用</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${telfeeList}" var="telfee" varStatus="status">
			<tr>
				<td>${status.index+1}</td>
				<td>${telfee.sclName }</td>
				<td>
					<fmt:parseDate value="${telfee.ywEndDate}"	var="ywEndDate" pattern="yyyyMMdd" /> 
					<fmt:formatDate	value="${ywEndDate}" pattern="yyyy-MM-dd" />
				</td>
				<td>${telfee.saleDeptName}</td>
				<td>${telfee.saleUserName}</td>
				<td>${telfee.saleKeepName}</td>
				<td><fmt:formatNumber value="${telfee.telFee}" type="number" pattern="￥0.00" /></td>
				<td><fmt:formatNumber value="${telfee.operFee}" type="number" pattern="￥0.00" /></td>
				<td><fmt:formatNumber value="${telfee.payFee}" type="number" pattern="￥0.00" /></td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
</div>
<div style="margin-right:20px;float: right;margin-top: 30px; ">
	<input  type="submit" value="打印" class="btn btn-info" id="bal_print_telfee_btn"/>
</div>